// 专题相关接口
import http from "../common/http.js"

export default {
	//获取专题列表
	getTopicList: (data,needLoading) => {
		return http.GET('/default/topic-list', data,needLoading)
	},
	//获取专题所有分类
	getTopicType: (data,needLoading) => {
		return http.GET('/default/topic-type', data,needLoading)
	},
	//获取专题详情页内容
	topicDetails: (data,needLoading) => {
		return http.GET('/default/topic', data,needLoading)
	},
	//专题内容详情页收藏
	topicFavorite: (data,needLoading) => {
		return http.GET('/user/topic-favorite', data,needLoading)
	},
	//生成海报
	topicQrcode: (data,needLoading) => {
		return http.GETPoster('/default/topic-qrcode', data,needLoading)
	},

	topicFavoriteList: (data,needLoading) => {
		return http.GET('/user/topic-favorite-list', data,needLoading)
	},
}
